package com.atguigu.classes.preconditions;

/**
 * @program: myIDEA
 * @description: %取模
 * @author: Mr.zjx
 * create: 2021-07-04-20-27
 **/
public class Test03 {
    public static void main(String[] args) {
        System.out.println(5%3);  //2
        System.out.println(5%-3); //2
        System.out.println(-5%-3); //-2 取余数只看分母正负，分子正负不看
        System.out.println(-6%3);  //0
    }
}
